package com.pro.schedule.service;

import com.pro.schedule.entity.User;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Map;

public interface UserService {
    String loginUser(User user) throws Exception;

    User getUserInfo(String token);

    String saveOrUpdateUser(User user, String token) throws Exception;

    String changePassword(String token, String newPassword, String oldPassword) throws Exception;

    String forgetPassword(String userPhone, String newPassword) throws Exception;

    String getCode(String userPhone) throws Exception;

    String uploadAvatar(MultipartFile file, String path, String token) throws Exception;
}
